package com.ruoyi.system.domain.qo;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class GoodsQo extends BaseEntity {

    /**
     * 商品管理对象 goods
     *
     * @author Theo
     * @date 2022-11-03
     */

        private static final long serialVersionUID = 1L;

        /** $column.columnComment */
        @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
        private Long id;

        /** 商品名 */
        @Excel(name = "商品名")
        private String name;

        /** 标题 */
        @Excel(name = "标题")
        private String title;


         /** 分类id */
        @Excel(name = "分类id")
        private Integer categoryId;

        /** 分类id */
        @Excel(name = "分类名")
        private String categoryName;

        /** 价格 */
        @Excel(name = "价格")
        private Integer price;

        /** 状态 */
        @Excel(name = "状态")
        private String status;

        /** 活动id */
        @Excel(name = "活动名")
        private String activeName;

        /** 活动id */
        @Excel(name = "活动id")
        private Integer activeId;

        /** 商品图片 */
        @Excel(name = "商品图片")
        private String img;

        /** 评价id */
        @Excel(name = "评价id")
        private Integer evaluateId;

        /** 热度 */
        @Excel(name = "热度")
        private Integer hot;

        /** 秒杀价 */
        @Excel(name = "秒杀价")
        private Integer seckillPrice;

        /** 秒杀数量 */
        @Excel(name = "秒杀数量")
        private Integer seckillNum;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getActiveName() {
        return activeName;
    }

    public void setActiveName(String activeName) {
        this.activeName = activeName;
    }

    public Integer getActiveId() {
        return activeId;
    }

    public void setActiveId(Integer activeId) {
        this.activeId = activeId;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Integer getEvaluateId() {
        return evaluateId;
    }

    public void setEvaluateId(Integer evaluateId) {
        this.evaluateId = evaluateId;
    }

    public Integer getHot() {
        return hot;
    }

    public void setHot(Integer hot) {
        this.hot = hot;
    }

    public Integer getSeckillPrice() {
        return seckillPrice;
    }

    public void setSeckillPrice(Integer seckillPrice) {
        this.seckillPrice = seckillPrice;
    }

    public Integer getSeckillNum() {
        return seckillNum;
    }

    public void setSeckillNum(Integer seckillNum) {
        this.seckillNum = seckillNum;
    }

    @Override
        public String toString() {
            return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                    .append("id", getId())
                    .append("name", getName())
                    .append("title", getTitle())
                    .append("categoryId",getCategoryId())
                    .append("categoryName", getCategoryName())
                    .append("price", getPrice())
                    .append("status", getStatus())
                    .append("activeId", getActiveName())
                    .append("activeName", getActiveName())
                    .append("img", getImg())
                    .append("evaluateId", getEvaluateId())
                    .append("hot", getHot())
                    .append("seckillPrice", getSeckillPrice())
                    .append("seckillNum", getSeckillNum())
                    .toString();
        }
    }


